package com.example.demofile.common;

public class Constants {
     // 这里的files和下面FILE_MAP的files要一致
    // public final static String FILE_URL = "http://localhost/app/files/";
    public final static String FILE_MAP = "/files/**"; 
    public final static String FILE_BASE_URL = "/files/";
    // public final static String FILE_PATH = "D:/upload/";
    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 获取导入上传路径
     */
    public static String getImportPath(String profile)
    {
        return profile + "/import";
    }

    /**
     * 获取头像上传路径
     */
    public static String getAvatarPath(String profile)
    {
        return profile + "/avatar";
    }

    /**
     * 获取下载路径
     */
    public static String getDownloadPath(String profile)
    {
        return profile + "/download/";
    }

    /**
     * 获取上传路径
     */
    public static String getUploadPath(String profile)
    {
        return profile + "/upload";
    }
}